package cn.itcast.service;

import cn.itcast.domain.Client;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface ClientService {
    public List<Client> findNow(String currentPage,String rows);

    public List<Client> findHis(String currentPage,String rows);

    public void add(Client client);


    /**
     *
     * 点击图片退房回显数据
     * @param clientId
     * 点击图片回传id
     * @return
     * 将回显的数据返回
     */
    Client findClient(Integer clientId);
    /**
     * 客户退房
     * @param client
     * 接收findClient方法的返回值来删除客户对应的房间信息
     */
    void deleteClient(Client client);

    public int findCid(Client client);

    Date findClientDate(int roomNumber);

    public void updateFlagById(int cid);
}
